#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)
#include<stdio.h>
void Bubble_sort(int* arr,int size)
{
	for (int i = 0; i < size-1; i++)
	{
		for (int j = 0; j < size - 1-i; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				int temp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = temp;
			}
		}
	}
}
int main()
{
	int arr[] = { 6,4,5,3,1,2 };
	int size = sizeof(arr) / sizeof(int);
	Bubble_sort(arr, size);
	for (int i = 0l; i < size; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}